#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;

int main()
{
	int ch = 0;
	int col = 0;
	int row = 0;
	char str[100][20] = { 0 };
	
	while ((ch = getchar()) != '.')
	{
		str[row][col++] = ch;
		while ((ch = getchar()) != '\n')
		{
 			str[row][col++] = ch;
		}
		if (ch == '\n')
		{
			row++;
			col = 0;
		}
	}

	if (str[1][0] != '\0' && str[13][0] != '\0')
	{
		printf("%s and %s are inviting you to dinner...\n", str[1], str[13]);
	}
	else if (str[1][0] != '\0' && str[13][0] == '\0')
	{
		printf("%s is the only one for you...\n", str[1]);
	}
	else
	{
		printf("Momo... No one is for you ...\n");
	}
	

	return 0;
}
